import { authHandlerInterface } from "@/auth/auth.interface";
import authDealHandler from "@/auth/authDealHandler";
const authConfig: authHandlerInterface = {
  name: 'customSearchPage',
  handler: {
    one_search: {
      name: '查询渠道',
      hasAuth: true,
      noAuthTips: '您无查询渠道权限',
      mixin: (E: any) => {
        return <E />
      }
    },
    one_add: {
      name: '添加渠道',
      hasAuth: true,
    },
    one_edit: {
      name: '编辑渠道',
      hasAuth: true,
    },
    one_delete: {
      name: '删除渠道',
      hasAuth: true,
    },
  }
}

export default () => authDealHandler(authConfig);